package com.fc.employee.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zwy
 * @since 2022-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("employee")
@ApiModel(value="Employee对象", description="")
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "员工姓名")
    private String name;

    @ApiModelProperty(value = "0为酒店管理员 1为系统管理员")
    private String level;

    @ApiModelProperty(value = "员工头像")
    private String avatar;

    @ApiModelProperty(value = "员工登录密码")
    private String password;

    @ApiModelProperty(value = "员工手机号")
    private String phone;

    @ApiModelProperty(value = "员工身份证号")
    private String identity;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic(value = "false")
    private Boolean isDeleted;

    @ApiModelProperty(value = "入职时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改信息时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

}
